package ungdung_quanlymathang;

public class mat_hang {
	int id_mathang;
	int id_nguoidung;
	String ten_mathang;
	String gia_mathang;
	String nha_sanxuat;
	String ngay_capnhat;
	private boolean selected;
	public mat_hang(){}
	public mat_hang(int _id_mathang,int _id_nguoidung,String _ten_mathang,String _gia_mathang, String _nha_sanxuat,String _ngay_capnhat){
		this.id_mathang=_id_mathang;
		this.id_nguoidung=_id_nguoidung;
		this.ten_mathang=_ten_mathang;
		this.gia_mathang=_gia_mathang;
		this.nha_sanxuat=_nha_sanxuat;
		this.ngay_capnhat=_ngay_capnhat;
		
	}
	public mat_hang(int _id_nguoidung,String _ten_mathang,String _gia_mathang, String _nha_sanxuat,String _ngay_capnhat){
		this.id_nguoidung=_id_nguoidung;
		this.ten_mathang=_ten_mathang;
		this.gia_mathang=_gia_mathang;
		this.nha_sanxuat=_nha_sanxuat;
		this.ngay_capnhat=_ngay_capnhat;
		
	}
	public int get_id_mathang(){
		return this.id_mathang;
	}
	public void set_id_mathang(int _id){
		this.id_mathang=_id;
	}
	public int get_id_nguoidung(){
		return this.id_nguoidung;
	}
	public void set_id_nguoidung(int _id_nguoidung){
		this.id_nguoidung=_id_nguoidung;
	}
	
	public String get_ten_mathang(){
		return this.ten_mathang;
	}
	public void set_tenmathang(String _tenmathang){
		this.ten_mathang=_tenmathang;
	}
	public String get_gia_mathang(){
		return this.gia_mathang;
	}
	public void set_gia_mathang(String _giamathang){
		this.gia_mathang=_giamathang;
	}
	public String get_nha_sanxuat(){
		return this.nha_sanxuat;
	}
	public void set_nha_sanxuat(String _nhasanxuat){
		this.nha_sanxuat=_nhasanxuat;
	}
	public String get_ngay_capnhat(){
		return this.ngay_capnhat;
	}
	public void set_ngay_capnhat(String _ngaycapnhat){
		this.ngay_capnhat=_ngaycapnhat;
	}
	public boolean isSelected() {
        return selected;
    }
    
    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
